package cn.zqy.demo.day06;

public class Demo03Param {
    public static void main(String[] args) {
        Phone one = new Phone();
        one.brand = "黑莓";
        one.color = "黑色";
        one.price = 999.0;
        phoneMethod(one);
    }

    public static void phoneMethod(Phone param) {
        System.out.println(param.brand);
        System.out.println(param.color);
        System.out.println(param.price);
    }
}
